package com.zcsy.manage.distribution.service.base.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zcsy.manage.distribution.service.base.CICommonVerifyCodeService;
import com.zcsy.manage.model.base.CommonVerifyCode;
import com.zcsy.manage.persistence.base.CommonVerifyCodeDao;
/**
 * 
 * @Title:CICommonVerifyCodeServiceImpl
 * @Package：  com.zcsy.manage.distribution.service.base.impl
 * @Description:验证码接口实现类 
 * @author wangj
 * @date 2016年6月7日下午6:23:57
 * @version 1.0
 * @see JDK1.7.0_67
 * @Copyright: 2016 武汉恒数利通技术有限公司 All rights reserved.
 */
@Service
public class CICommonVerifyCodeServiceImpl implements CICommonVerifyCodeService{
	
    @Autowired
	private CommonVerifyCodeDao commonVerifyCode;
	
	@Override
	public int insert(CommonVerifyCode verifyCode) {
		return commonVerifyCode.insert(verifyCode);
	}

	@Override
	public CommonVerifyCode selectCodeByAccount(String userAccount) {
		return commonVerifyCode.selectCodeByAccount(userAccount);
	}

	@Override
	public int deleteById(String id) {
		return commonVerifyCode.deleteById(id);
	}

	@Override
	public CommonVerifyCode selectCodeByPhone(String phone) {
		return commonVerifyCode.selectCodeByPhone(phone);
	}

}
